<?php
#注销账号
class UserCancelModel extends PdoModel
{
    protected $_name = 'user_cancel';

    function __construct()
    {
        parent::__construct();
    }

    #添加
    function addData($data)
    {
        if (empty($data)) {
            return false;
        }
        return $this->insert($data);
    }

    function getUserInfoByUid($uid = 0){
        if($uid <= 0){
            return false;
        }

        $sql = "select * from user where uid = {$uid}";
        $data = $this->fetchRow($sql);
        return $data;
    }
}